std::basic_string::front
From Cppreference
< cpp | string | basic string
| CharT& front();
| (C++0x) | |
| const CharT& front() const;
| (C++0x) | |
Returns reference to the first character in the string.
Contents |
Parameters
(none)
Return value
reference to the first character.
Complexity
constant
See also
| accesses the last character (public member function) | ||